package day1217;

import java.util.Arrays;

public class Test7 {
    public static void main(String[] args) {
        //1.创建一个容量为4的double数组
        double[]  c4=new double[4];
        for(int m=0;  m< c4.length  ;  m=m+1){
            c4[m]=Math.random()*100;
        }

        for(int m=0;  m< c4.length  ;  m=m+1){
            System.out.println(c4[m]);
        }
        System.out.println(Arrays.toString(c4));//将数组的每个元素连接为一个字符串
    }   //             c4[0]+","+ c4[1]+","  +  c4[2]+","   +  c4[3]
}